<header id="page-header"> 
    <h1>Raporlar</h1> 
</header>

<div id="content">
	<?php echo $this->session->flashdata('status') ?>
	
	<h3>Gönderilen Mailler (<?php echo $result['total_rows']; ?>)</h3>

	<table class="list">

		<thead>
			<tr>
				<th>Mail Adres</th>
				<th>Ad</th>
				<th>Soyad</th>
				<th>Cinsiyet</th>
			</tr>
		</thead>

		<tbody>
			<?php if($result['total_rows']): ?>
				<?php foreach ($result['rows'] as $row): ?>
					<tr >
						<td><?php echo $row->address ?></td>
						<td><?php echo $row->firstname ?></td>
						<td><?php echo $row->lastname ?></td>
						<td><?php echo $genders[$row->gender]; ?></td>
					</tr>
				<?php endforeach; ?>
			<?php else: ?>

				<tr>
					<td colspan="8">
						<div class="notification info">Bu gurupta herhangi bir abone bulunmamaktadır.</div>
					</td>
				</tr>

			<?php endif; ?>
		</tbody>

	</table>

	<?php echo $pagination; ?>

</div><!-- // #content -->